package com.zj.classwork;
import java.util.Scanner;
public class ClassWork20 {
    public static void main(String[] args) {
        System.out.println("请输入一个字符串：");
        Scanner input=new Scanner(System.in);
        String English= input.next();
        char[]arr=English.toCharArray();
        int sum1=0;
        int sum2=0;
        for(int i=0;i<arr.length;i++)
        {
            char c=arr[i];
            if('a'==c||c=='i'||c=='o'||c=='i'||c=='e')
            {
                sum1++;
            }
            else {
                sum2++;
            }
        }
        System.out.println("元音个数为："+sum1);
        System.out.println("辅音个数为："+sum2);

    }
}
